//字体过多出现省略号
@mixin text-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@mixin search-input {
    display: flex;
    align-items: center;
    color: $placeholder-color;
    input {
        //与父元素宽度保持一致
        width: 100%;
        border-radius: $input-search-border-radius;
        border: $input-search-border;
        color: $input-search-color;
        background: $input-search-bg;
        padding: $input-search-padding-tb $input-search-padding-lr; 
        font-size: $input-search-font-size;
    }
    .placeholder {
        position: absolute;
        margin-left: $input-search-padding-lr;
        font-size: $font-xs;
        &:hover {
            cursor: text;
        }
    }
    i {
        position: relative;
        right: rem(30);
    }
}
